{include file = "styles/header.tpl"}
<script type="text/javascript" src="js/user/index.js"></script>

<div id="content" class="box">
	<h1>Content Management</h1>
	
	<form method="get" name="frmSearch">
	<fieldset>
		<legend>
			<a href="javascript:setDisplayFillter('hide');" class="smaller" id="fillterHidden">
				Hide
			</a>
			<a href="javascript:setDisplayFillter('display');" class="smaller" id="fillterDisplay" style="display:none;">
				Display
			</a>
		</legend>
		<div id="fillterContent">
			<label>Type (Table): </label>
			<select name="strType" id="strType">
						  <option value="sales" {if $strType =="sales"} selected="selected" {/if}>Sales </option>
						  <option value="forecasts" {if $strType =="forecasts"} selected="selected" {/if}>Forecasts </option>
						  <option value="suppliers" {if  $strType =="suppliers"} selected="selected" {/if}>Supliers </option>
			</select>

			<input type="hidden" name="page" value="{$intPage}" />
			<input type="hidden" name="li" value="{$intItemOnPerPage}" />
			<input type="submit" value="Search" name="smb" class="bt" />
			<div style="float:right;" >
				<a href="{$smarty.const.HOST_ADMIN}/tooltip/add" class="homeButton" >
				<span><strong>Create</strong></span>
			</a>
			</div>
		</div>
	</fieldset>
	</form>
	
	<table width="100%">
		<tr>
		    <th>Id</th>
			<th>Colunm</th>
			<th>Name Show</th>
			<th>Description</th>
			<th>Data Validate</th>
			<th>Table</th>
			<th class="last">&nbsp;</th>
		</tr>
		{section name=i loop=$arrResult}
		  <tr {if $smarty.section.i.index%2!=0}class="bg"{/if}>
		    <td>{$arrResult[i].id}</td>
			<td>{$arrResult[i].column}</td>
			<td>{$arrResult[i].name_show}</td>
			<td>{$arrResult[i].description}</td>
			<td>{$arrResult[i].data_validate}</td>
			<td>{$arrResult[i].type}</td>
			<td>
				<a href="{$smarty.const.HOST_ADMIN}/tooltip/add/?intId={$arrResult[i].id}">Edit</a>
			</td>
		  </tr>
		{/section}
	</table>
</div>
<div id="currenttab" class="category_content_management" style="display: none;">
{include file = "styles/footer.tpl"}